/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 12/12/2010 
           
            */


using System;
using System.Collections.Generic;
using System.Text;


namespace BusinessObject
{
    /// <summary>
    /// This is SubCategory object, it is object of BusinessObject table.
    /// </summary>
    public class SubCategory
    {
        #region fields
        private int subCategoryId;
        private string categoryId;
        private string subCategoryName;
        private string subCategoryCode;
        private string description;
        private Boolean isPublished;
        private int order;
        private string createdBy;
        private DateTime createdDate;
        private string lastUpdatedBy;
        private DateTime lastUpdatedDate;
        private Paging objPaging;

        private SortOrder objSortOrder;

        private string condition;

        private int toltalRow;


        #endregion fields

        #region constructor
        /// <summary>
        /// Define default constructor for SubCategory Object
        /// </summary>
        public SubCategory()
        {
            this.subCategoryId = int.MinValue;
            this.categoryId = string.Empty;
            this.subCategoryName = string.Empty;
            this.subCategoryCode = string.Empty;
            this.description = string.Empty;
            this.isPublished = true;
            this.order = int.MinValue;
            this.createdBy = string.Empty;
            this.createdDate = DateTime.MinValue;
            this.lastUpdatedBy = string.Empty;
            this.lastUpdatedDate = DateTime.MinValue; this.objPaging = new Paging();
            this.objSortOrder = new SortOrder();
            this.condition = string.Empty;
            this.toltalRow = 0;

        }
        #endregion constructor
        #region properties
        /// <summary>
        /// Define SubCategoryId Property
        /// </summary>
        public int SubCategoryId
        {
            get { return this.subCategoryId; }
            set { this.subCategoryId = value; }
        }
        /// <summary>
        /// Define CategoryId Property
        /// </summary>
        public string CategoryId
        {
            get { return this.categoryId; }
            set { this.categoryId = value; }
        }
        /// <summary>
        /// Define SubCategoryName Property
        /// </summary>
        public string SubCategoryName
        {
            get { return this.subCategoryName; }
            set { this.subCategoryName = value; }
        }
        /// <summary>
        /// Define SubCategoryCode Property
        /// </summary>
        public string SubCategoryCode
        {
            get { return this.subCategoryCode; }
            set { this.subCategoryCode = value; }
        }
        /// <summary>
        /// Define Description Property
        /// </summary>
        public string Description
        {
            get { return this.description; }
            set { this.description = value; }
        }
        /// <summary>
        /// Define IsPublished Property
        /// </summary>
        public Boolean IsPublished
        {
            get { return this.isPublished; }
            set { this.isPublished = value; }
        }
        /// <summary>
        /// Define Order Property
        /// </summary>
        public int Order
        {
            get { return this.order; }
            set { this.order = value; }
        }
        /// <summary>
        /// Define CreatedBy Property
        /// </summary>
        public string CreatedBy
        {
            get { return this.createdBy; }
            set { this.createdBy = value; }
        }
        /// <summary>
        /// Define CreatedDate Property
        /// </summary>
        public DateTime CreatedDate
        {
            get { return this.createdDate; }
            set { this.createdDate = value; }
        }
        /// <summary>
        /// Define LastUpdatedBy Property
        /// </summary>
        public string LastUpdatedBy
        {
            get { return this.lastUpdatedBy; }
            set { this.lastUpdatedBy = value; }
        }
        /// <summary>
        /// Define LastUpdatedDate Property
        /// </summary>
        public DateTime LastUpdatedDate
        {
            get { return this.lastUpdatedDate; }
            set { this.lastUpdatedDate = value; }
        }
        public Paging ObjectPaging
        {
            get { return this.objPaging; }
            set { this.objPaging = value; }
        }
        public SortOrder ObjectSortOrder
        {
            get { return this.objSortOrder; }
            set { this.objSortOrder = value; }
        }
        public string Condition
        {
            get { return this.condition; }
            set { this.condition = value; }
        }
        public int ToltalRow
        {
            get { return this.toltalRow; }
            set { this.toltalRow = value; }
        }

        #endregion properties
    }
}